#FROM docker.elastic.co/elasticsearch/elasticsearch:6.8.13
FROM hub.pengbei.tech:18080/bigdata/elasticsearch:6.8.13

RUN mkdir -p /usr/share/elasticsearch/plugins/ik
COPY elasticsearch-analysis-ik-6.8.13.zip /ik.zip
RUN unzip /ik.zip -d /usr/share/elasticsearch/plugins/ik && rm -rf /ik.zip

#COPY run.sh /
#RUN chmod +x /run.sh

ENTRYPOINT ["su", "elasticsearch", "/usr/local/bin/docker-entrypoint.sh"]
